package com.kedacom.demo.springrabbit.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.kedacom.demo.springrabbitex.rpc.Message;

public class MessageHandler {

	protected Logger logger = LoggerFactory.getLogger(getClass());

	public String handleMessage(Message message) {
		logger.debug("receive message {}", message);
		return message.getBody();
	}

	public String handleMessage(Object message) {
		logger.debug("receive object message {}", message);
		return message.toString();
	}

	public String handleMessage(String message) {
		logger.debug("receive string message {}", message);
		return message;
	}

}
